import request from '@/utils/request'

export function selectShelters(pageIndex,pageSize,sheltersName) {
  return request({
    url: '/shelter/shelters',
    method: 'get',
    params: { pageIndex,pageSize,sheltersName }
  })
}

export function insertShelters(data) {
  return request({
    url: '/shelter/shelter',
    method: 'post',
    data
  })
}

export function deleteShelters(shelterId) {
  return request({
    url: '/shelter/' + shelterId,
    method: 'delete'
  })
}

export function updateShelters(data) {
  return request({
    url: '/shelter/shelter',
    method: 'patch',
    data
  })
}